package com.seven.ssa.service;

import com.seven.ssa.common.BaseResponse;
import com.seven.ssa.common.BatchAddResult;
import com.seven.ssa.model.dto.questionBankQuestion.QuestionBankQuestionBatchAddRequest;
import com.seven.ssa.model.dto.questionBankQuestion.QuestionBankQuestionBatchRemoveRequest;
import com.seven.ssa.model.entity.QuestionBankQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Dell
* @description 针对表【question_bank_question(题库题目)】的数据库操作Service
* @createDate 2025-06-14 10:41:48
*/
public interface QuestionBankQuestionService extends IService<QuestionBankQuestion> {

    void validQuestionBankQuestion(QuestionBankQuestion questionBankQuestion);

    void batchAddQuestionsToBank(QuestionBankQuestionBatchAddRequest questionBankQuestionBatchAddRequest, HttpServletRequest request);

    void batchRemoveQuestionsToBank(QuestionBankQuestionBatchRemoveRequest questionBankQuestionBatchRemoveRequest, HttpServletRequest request);

    @Transactional(rollbackFor = Exception.class)
    void batchAddQuestionsToBankInner(List<QuestionBankQuestion> questionBankQuestions);
}
